package com.matrix.index.ui.home.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.matrix.basecore.utils.glide.GlideUtil
import com.matrix.index.R
import com.matrix.index.ui.home.bean.WallpaperBean

class RVWallpaperAdapter(layoutResId: Int, dates: MutableList<WallpaperBean.Vertical>) :
    BaseQuickAdapter<WallpaperBean.Vertical, BaseViewHolder>(
        layoutResId, dates
    ), LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: WallpaperBean.Vertical) {
        GlideUtil.loadRoundImage(
            item?.thumb,
            context,
            holder.getView(R.id.iv_image),
            6,
            R.mipmap.icon_default_bg
        )
    }
}